import request from '@/config/axios'

// 用户
export const userSimpleList = async () => {
  return await request.get({ url: `/system/user/simple-list` })
}
// 确认订单接口
export const payConfirm = async (data) => {
  return await request.post({ url: `/system/pay/confirm`, data })
}
// 获取可支付的方式
export const getEnableCodeList = async (id) => {
  return await request.get({ url: `/pay/channel/get-enable-code-list?appId=` + id })
}
// 创建支付订单
export const createPay = async (data) => {
  return await request.post({ url: `/system/pay/create`, data })
}
// 提交支付订单
export const orderSubmit = async (data) => {
  return await request.post({ url: `/pay/order/submit`, data })
}
